﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jemgine.Engine.Scripts
{
    [Category("System"), Node]
   public class Branch: Data.ScriptNode
    {
       public Branch()
       {
           AddInput("Fire", null);
           AddOutput("One", null);
           AddOutput("Two", null);
           AddOutput("Three", null);
           AddOutput("Four", null);
       }

       public override void FireTerminal(int InputID, Data.ScriptPayload Payload)
       {
           foreach (var Output in OutputTerminals)
               Output.Fire(Payload);
       }

      
    }
}
